const express = require("express");
const bodyParser = require("body-parser");
const app = express();
const port = 80;
const gitRouter = require("./router/git.js");
const mobilesRouter = require("./router/mobiles.js");
const logsRouter = require("./router/logs.js");
const appsRouter = require("./router/apps.js");
const bindRouter = require("./router/bind.js");
const dayMoneyRouter = require("./router/dayMoney.js");
app.use(express.static("static"));
app.use(bodyParser.json());
app.use("/api/git", gitRouter);
app.use("/api/mobiles", mobilesRouter);
app.use("/api/logs", logsRouter);
app.use("/api/apps", appsRouter);
app.use("/api/bind", bindRouter);
app.use("/api/dayMoney", dayMoneyRouter);
app.listen(port, () => {
  console.log(`Example app listening on port ${port}`);
});
